package ${package}.dao;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

/**
 * ${moduleName}Dao implementation.
 */
@Repository
public class ${moduleName}DaoImpl implements ${moduleName}Dao {
    /**
     * Dao logger.
     */
    private Log logger = LogFactory.getLog(this.getClass());

    /**
     * JPA persistence context.
     */
    @PersistenceContext
    private EntityManager entityManager;

    /**
     * Dao info string.
     */
    public static final String DAO_INFO = ${moduleName}DaoImpl.class.getName() + ", $Revision: $";


    @Override
    public String getDaoInfo() {
        logger.debug(${moduleName}DaoImpl.class.getName() + " Info requested.");

        return DAO_INFO;
    }
}
